package cn.itcast.service;

import cn.itcast.domain.Role;
import cn.itcast.entity.PageResult;
import cn.itcast.entity.QueryPageBean;

import java.util.List;

public interface RoleService {
    List<Role> findAllRoles();

    void insertRole(Role role, Integer[] permissionIds, Integer[] menuIds);

    Role findRoleById(Integer id);

    PageResult findRoleByPage(QueryPageBean queryPageBean);

    void deleteRole(Integer id);

    void updateRole(Role role, Integer[] permissionIds, Integer[] menuIds);

    List<Integer> findPermissionIds(Integer id);

    List<Integer> findMenuIds(Integer id);
}
